package org.sdnstproject.interlayer.interlayerProxy;

import java.util.HashMap;

public class OF13MsgFields {
	
	public OF13MsgFields() {
		
	}
	public HashMap<String, String> FuHelloFields = new HashMap<String, String>() {
		{
			put("version","byte");
			put("type","byte");
			put("length","short");
			put("xid","long");
		}
    };
    public HashMap<String, String> FuRoleRequestFields = new HashMap<String, String>() {
		{
			put("version","byte");
			put("type","byte");
			put("length","short");
			put("xid","long");
			put("role", "int");
			put("generationId", "long");
		}
    };
    public HashMap<String, String> FuRoleReplyFields = new HashMap<String, String>() {
		{
			put("version","byte");
			put("type","byte");
			put("length","short");
			put("xid","long");
			put("role", "int");
			put("generationId", "long");
		}
    };
	public HashMap<String, String> FuBarrierRequestFields = new HashMap<String, String>() {
		{
			put("version","byte");
			put("type","byte");
			put("length","short");
			put("xid","long");
		}
    };
    public HashMap<String, String> FuBarrierReplyFields = new HashMap<String, String>() {
		{
			put("version","byte");
			put("type","byte");
			put("length","short");
			put("xid","long");
		}
    };
    public HashMap<String, String> FuEchoReplyFields = new HashMap<String, String>() {
		{
			put("version","byte");
			put("type","byte");
			put("length","short");
			put("xid","long");
			put("data", "long");
		}
    };
    public HashMap<String, String> FuFeaturesReplyFields = new HashMap<String, String>() {
		{
			put("version","byte");
			put("type","byte");
			put("length","short");
			put("xid","long");
			put("datapathId", "long");
			put("nBuffers", "long");
			put("nTables", "short");
			put("auxiliaryId", "short");
			put("capabilities", "int");
			put("reserved", "long");
		}
    };
    public HashMap<String, String> FeaturesRequestFields = new HashMap<String, String>() {
		{
			put("version","byte");
			put("type","byte");
			put("length","short");
			put("xid","long");
		}
    };
	public HashMap<String, String> portStatusFields = new HashMap<String, String>() {
		{
			put("version","byte");
			put("type","byte");
			put("length","short");
			put("xid","long");
			put("reason","byte");
			put("port_no","int");
			put("hw_addr","long");
			put("name","String");
			put("config","int");
			put("state","int");
			put("curr","int");
			put("advertised","int");
			put("supported","int");
			put("peer","int"); 
			put("curr_speed","long");
			put("max_speed","long");
		}
	};
}
